using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace GameEditor.Common.Designer
{
    class BlankControl : Control
    {
        Brush brush;
        public BlankControl(DesignerPanel panel,Color color)
            : base(panel)
        {
            brush = new SolidBrush(color);
        }
        public override void OnDraw(System.Drawing.Graphics g)
        {
            base.OnDraw(g);
            Rectangle rect = CoordinateTransform(Geometry);
            g.FillRectangle(brush, rect);
            g.DrawRectangle(Pens.Black, rect);
        }
    }
}
